<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/base_user.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>设置</title>
    <style>
        .set{
            background: white;
        }
        .layui-m-layershade{
            background: rgba(0,0,0,0.3)!important;
        }
    </style>
</head>
<body>
<div class="wrap-shopinfo">
    <div class="header">
        <p>设置</p>
        <img src="__STATIC__/img_user/back.png" class="back" onclick=window.location.href="{:url('mobile/user_info/my_shop_index')}">
    </div>
    <div class="set">
        <ul>
            <li onclick=window.location.href="{:url('mobile/user_info/user_account_safety')}" >
                <h4 class="left">账户安全</h4>
                <p class="right" ><img src="__STATIC__/img_user/next2.png" class="next" ></p>
            </li>
            <!--<li class="clear">-->
                <!--<h4 class="left">新消息通知</h4>-->
                <!--<p class="right"><img src="__STATIC__/img_user/next2.png" class="next" onclick=window.location.href="{:url('mobile/user_info/msg_tip_set')}"></p>-->
            <!--</li>-->
            <!--<li>-->
                <!--<h4 class="left">清除缓存</h4>-->
                <!--<p class="right"><img src="__STATIC__/img_user/next2.png" class="next"></p>-->
            <!--</li>-->
            <li onclick=window.location.href="{:url('mobile/user_info/user_about_us')}">
                <h4 class="left">关于我们</h4>
                <p class="right" ><img src="__STATIC__/img_user/next2.png" class="next"></p>
            </li>
            <li onclick=window.location.href="{:url('user_info/idea_feedback')}">
                <h4 class="left">意见反馈</h4>
                <p class="right" ><img src="__STATIC__/img_user/next2.png" class="next"></p>
            </li>
        </ul>
    </div>
    <input type="submit" class="submit" value="退出当前账号" onclick="quit()">
    <div class="board"></div>
</div>
<script src="__STATIC__/js/layer_mobile/layer.js"></script>
<script>
    //退出当前账号
    function quit(){
        layer.open({
            content: '您确定退出当前账号吗？'
            ,btn: ['确定', '取消']
            ,yes: function(index){
                $.ajax({
                    url:"{:url('mobile/user_info/quit_account')}",
                    dataType:'json',
                    type:'post',
                    success:function(t){
                        if (t.code == 200){
                            layer.open({content:t.message,skin:'msg',time:2});
                            window.location.href = "{:url('mobile/user_port/login')}";
                        }else{
                            layer.open({content:t.message,skin:'msg',time:2});
                        }
                    },
                    error: function () {
                        layer.open({content:'网络繁忙,请重试',skin:'msg',time:2});
                    }
                });
                layer.close(index);
            }
        });
    }
</script>
</body>
</html>